home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / f90 / ishftc.z / ishftc
Text File  |  1998-10-30  |  2KB  |  51 lines

  1. ISHFTC(3I)                                             Last changed: 1-6-98
  2.  
  3.  
  4. NNAAMMEE
  5.      IISSHHFFTTCC - Performs a circular shift of the rightmost bits
  6.  
  7. SSYYNNOOPPSSIISS
  8.      IISSHHFFTTCC (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t [,,[SSIIZZEE==]_s_i_z_e]))
  9.  
  10. IIMMPPLLEEMMEENNTTAATTIIOONN
  11.      UNICOS, UNICOS/mk, and IRIX systems
  12.  
  13. SSTTAANNDDAARRDDSS
  14.      Fortran 90
  15.  
  16. DDEESSCCRRIIPPTTIIOONN
  17.      The IISSHHFFTTCC intrinsic function performs a circular shift of the
  18.      rightmost bits.  It accepts the following arguments:
  19.  
  20.      _i         Must be of type integer.
  21.  
  22.      _s_h_i_f_t     Must be of type integer.  The absolute value of _s_h_i_f_t must
  23.                be less than or equal to _s_i_z_e.
  24.  
  25.      _s_i_z_e      Must be of type integer.  The value of _s_i_z_e must be positive
  26.                and must not exceed BBIITT__SSIIZZEE((_i)).  If _s_i_z_e is absent, it is
  27.                as if it were present with the value of BBIITT__SSIIZZEE(_i).
  28.  
  29.      IISSHHFFTTCC is an elemental function.  The name of this intrinsic cannot be
  30.      passed as an argument.
  31.  
  32. RREETTUURRNN VVAALLUUEESS
  33.      The result type and type parameter are the same as _i.  The result has
  34.      the value obtained by shifting the _s_i_z_e rightmost bits of _i circularly
  35.      by _s_h_i_f_t positions.  If _s_h_i_f_t is positive, the shift is to the left;
  36.      if _s_h_i_f_t is negative, the shift is to the right; and if _s_h_i_f_t is zero,
  37.      no shift is performed.  No bits are lost.  The unshifted bits are
  38.      unaltered.  The bit model defines the interpretation of an integer
  39.      value as a sequence of bits.  For more information on the model, see
  40.      the MMOODDEELLSS(3I) man page.
  41.  
  42. EEXXAAMMPPLLEESS
  43.      IISSHHFFTTCC((33,, 22,, 33)) has the value 5.
  44.  
  45. SSEEEE AALLSSOO
  46.      MMOODDEELLSS(3I)
  47.  
  48.      _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-2138, for the
  49.      printed version of this man page.
  50.  
  51.